package com.kws.system.api.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author :yxy
 * @date : 2024/10/22
 */
@Data
@ApiModel(value = "分页实体类",description = "分页实体类")
public class Page {
    @ApiModelProperty("页码")
    private Integer pageSize;

    @ApiModelProperty("显示条数")
    private Integer totalPage;

    public Integer getPageSize() {
        if (pageSize==0||pageSize==null){
            pageSize=1;
        }
        return pageSize;
    }


    public Integer getTotalPage() {
        if (totalPage==0||totalPage==null){
            totalPage=10;
        }
        return totalPage;
    }

}
